//
//  FirstCell.m
//  Buiom_7.0
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 triffe. All rights reserved.
//

#import "FirstCell.h"

@implementation FirstCell

// 初始化cell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 创建图片
        self.picView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 250)];
        // self.picView.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:self.picView];
        // 创建题目lable
        self.titLable = [[UILabel alloc] initWithFrame:CGRectMake(0, self.picView.bottom - 40, kScreenWidth, 40)];
        self.titLable.textAlignment = NSTextAlignmentCenter;
        self.titLable.textColor = [UIColor whiteColor];
        self.titLable.backgroundColor = [UIColor blackColor];
        // self.titLable.alpha = 0.5;
        [self.contentView addSubview:self.titLable];
        
    }
    
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
